Two - Dimensional Pattern
نویسندگان
چکیده
We present the rst known (alphabet independent) algorithm for two-dimensional pattern matching which works in linear time and small space simultaneously. The searching phase of our algorithm works in O(1) space and is followed by pattern preprocessing performed in O(log m) space. Up to now there was not known even any eecient sublinear space algorithm for this problem. The main tools in our algorithm are several 2-dimensional variations of deterministic sampling, originally used in parallel pattern matching: small, frame and wide samples. Another novel idea used in our algorithm is the technique of zooming sequences: the sequences of nonperiodic decreasing parts of the pattern (samples) of similar regular shapes. Their regularity allows to encode the zooming sequences in small memory (logarithmic number of bits) while nonperiodicity allows to make shifts (kill positions as candidates for a match) in a way amortizing the work. The preprocessing phase is recur-sive, its structure is similar to the linear time algorithm for the selection problem. The stack of the recursion consists of logarithmic number of integers. Our algorithm is rather complicated, but all known alphabet-independent linear time algorithms (even with unrestricted space) for 2d-matching are quite complicated, too.
منابع مشابه
Modelling the catalyst fragmentation pattern in relation to molecular properties and particle overheating in olefin polymerization
A two-dimensional single particle finite element model was used to examine the effects of particle fragmental pattern on the average molecular weights, polymerization rate and particle overheating in heterogeneous Ziegler-Natta olefin polymerization. A two-site catalyst kinetic mechanism was employed together with a dynamic two-dimensional molecular species in diffusion-reaction equation. The i...
متن کاملOptimization of Dimensional Deviations in Wax Patterns for Investment Casting
Investment casting is a versatile manufacturing process to produce high quality parts with high dimensional accuracy. The process begins with the manufacture of wax patterns. The dimensional accuracy of the model affects the quality of the finished part. The present study investigated the control and optimization of dimensional deviations in wax patterns. A mold for an H-shaped wax pattern was ...
متن کاملThe Role of the Zagros Suture on Three Dimensional Deformation Pattern in Eghlid-Deh Bid Area of Iran
Deformation pattern of the northeastern part of the Iranian-Arabian collision zone (i.e., mainly Sanandaj-Sirjan Belt or Zone) is the main concern of this paper. Here, we investigate the stress distribution and displacement pattern of Eghlid-Deh Bid area as affected by the position of Zagros suture using a three dimensional mechanical model. The modeled area is located between the Zagros Thrust...
متن کاملThree-Dimensional Color Doppler Ultrasonography Study of Normal Liver Vascular Pattern in Dog
Objective- To create three-dimensional model of the dog's liver vessels by using threedimensionalcolor Doppler ultrasonography which can be used for surgery planning,tumor detecting, transplantation, and other diagnostic or treatment project.Design- Descriptive studyAnimals- 6 mixed breed dog, 1.6-1.7 years old, 18-20 kg weightProcedures- The liver was found by two-dimensional scan initially th...
متن کاملAbstract: Packing rectangular shapes into a rectangular space is one of the most important discussions on Cutting & Packing problems (C;P) such as: cutting problem, bin-packing problem and distributor's pallet loading problem, etc. Assume a set of rectangular pieces with specific lengths, widths and utility values. Also assume a rectangular packing space with specific width and length. The obj...
متن کاملThree-dimensional Magnetotelluric Modeling of data from Northeast of Gorgan Plain
Magnetotelluric measurements have been conducted in the period range of 0.005-128 s along five parallel east-west directed profiles including 85 sites totally in the north-eastern part of Gorgan Plain, Golestan Province, North of Iran; with the aim of exploring iodine. Distortion and dimensionality analysis of data imply the existence of a north-south elongated two-dimensional model with some l...
متن کامل